gsktransform: Make next == NULL case explicit
authorTimm Bäder <mail@baedert.org>
Sat, 6 Jun 2020 07:05:49 +0000 (09:05 +0200)
committerTimm Bäder <mail@baedert.org>
Fri, 19 Jun 2020 03:26:24 +0000 (05:26 +0200)
This is handled with the is_identity() check as well but this way it's
much more obvious what's happening

gsk/gsktransform.c

index 2d94d7e7a550c5d00b0c3042f35a553d829a3cae..79f230c0a1f6de45b5cbeb2f711b61fefba3c33b 100644 (file)
@@ -1622,6 +1622,9 @@ gsk_transform_transform (GskTransform *next,
   if (other == NULL)
     return next;
 
+  if (next == NULL)
+    return gsk_transform_ref (other);
+
   if (gsk_transform_is_identity (next))
     {
       /* ref before unref to avoid catastrophe when other == next */